import request from '@/utils/request'

// 查询管控品类型列表
export function listRestrictedkinds(query) {
  return request({
    url: '/labdata/restrictedkinds/list',
    method: 'get',
    params: query
  })
}
//allProperties
export function getAllProperties() {
  return request({
    url: '/labdata/restrictedkinds/allProperties',
    method: 'get'
  })
}

// 查询管控品类型详细
export function getRestrictedkinds(kindsId) {
  return request({
    url: '/labdata/restrictedkinds/' + kindsId,
    method: 'get'
  })
}

// 新增管控品类型
export function addRestrictedkinds(data) {
  return request({
    url: '/labdata/restrictedkinds',
    method: 'post',
    data: data
  })
}

// 修改管控品类型
export function updateRestrictedkinds(data) {
  return request({
    url: '/labdata/restrictedkinds',
    method: 'put',
    data: data
  })
}

// 删除管控品类型
export function delRestrictedkinds(kindsId) {
  return request({
    url: '/labdata/restrictedkinds/' + kindsId,
    method: 'delete'
  })
}

// 导出管控品类型
export function exportRestrictedkinds(query) {
  return request({
    url: '/labdata/restrictedkinds/export',
    method: 'get',
    params: query
  })
}